home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / linux-sound-base.postinst < prev    next >
Encoding:
Text File  |  2010-10-23  |  1.6 KB  |  56 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. . /usr/share/debconf/confmodule
  6. db_version 2.0
  7.  
  8. case "$1" in
  9. configure|reconfigure)
  10.     db_get linux-sound-base/sound_system || :
  11.     case "$RET" in
  12.     OSS)
  13.         rm -f /etc/hotplug/blacklist.d/linux-sound-base_noOSS
  14.         rm -f /etc/discover.d/linux-sound-base_noOSS
  15.         rm -f /etc/modutils/linux-sound-base_noOSS
  16.         rm -f /etc/modprobe.d/linux-sound-base_noOSS
  17.         rm -f /etc/modprobe.d/linux-sound-base_noOSS.conf
  18.         ln -sf /lib/linux-sound-base/noALSA.modprobe.conf /etc/modprobe.d/linux-sound-base_noALSA.conf
  19.         ;;
  20.     ALSA)
  21.         ln -sf /lib/linux-sound-base/noOSS.modprobe.conf /etc/modprobe.d/linux-sound-base_noOSS.conf
  22.         rm -f /etc/hotplug/blacklist.d/linux-sound-base_noALSA
  23.         rm -f /etc/discover.d/linux-sound-base_noALSA
  24.         rm -f /etc/modutils/linux-sound-base_noALSA
  25.         rm -f /etc/modprobe.d/linux-sound-base_noALSA
  26.         rm -f /etc/modprobe.d/linux-sound-base_noALSA.conf
  27.         ;;
  28.     default)
  29.         rm -f /etc/hotplug/blacklist.d/linux-sound-base_noOSS
  30.         rm -f /etc/discover.d/linux-sound-base_noOSS
  31.         rm -f /etc/modutils/linux-sound-base_noOSS
  32.         rm -f /etc/modprobe.d/linux-sound-base_noOSS
  33.         rm -f /etc/modprobe.d/linux-sound-base_noOSS.conf
  34.         rm -f /etc/hotplug/blacklist.d/linux-sound-base_noALSA
  35.         rm -f /etc/discover.d/linux-sound-base_noALSA
  36.         rm -f /etc/modutils/linux-sound-base_noALSA
  37.         rm -f /etc/modprobe.d/linux-sound-base_noALSA
  38.         rm -f /etc/modprobe.d/linux-sound-base_noALSA.conf
  39.         rm -f /etc/discover.conf.d/10linux-sound-base
  40.         ;;
  41.     esac
  42.     ;;
  43. abort-upgrade|abort-remove|abort-deconfigure)
  44.     # We don't have to do anything because we didn't do anything in prerm
  45.     exit 0
  46.     ;;
  47. *)
  48.     echo "postinst called with unknown argument \`$1'" >&2
  49.     exit 1
  50.     ;;
  51. esac
  52.  
  53.  
  54.  
  55. db_stop || :
  56.